Skip to main content

Get Files

AutomatR.GoogleDrive.Activities.GetFiles

The "Get Files" activity in AutomatR is part of the Google Drive activities package, allowing the retrieval of a list of files from a specified folder in the user's Google Drive account. This activity streamlines the process of obtaining file information for further automation workflows.

Properties

NameDescription
Input
FolderEnter the full path of the folder containing files to be retrieved (e.g., "Root\RetrieveAllFileshere"). String variables containing the folder path.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelayEnter the wait time in seconds (Example 5 seconds i.e. 5) to start the activity. Integer variables containing the delay duration.
Output
Get All Files ResponseReturns a list of the files available in the specified folder. Variables of type List<Google.Apis.Drive.v3.Data.File> to store the file information.

How to use:

  1. Drag and drop the "Get Files" activity onto the workflow.
  2. Configure the properties by specifying the folder path from which you want to retrieve files.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to obtain a list of files from the specified folder in Google Drive.

Example: Consider an example where the "Get Files" activity is used to retrieve files from a folder named "Documents" within the user's Google Drive:

Get Files:
Display Name: "Retrieve Documents"
Folder: "Root\\Documents"
Get All Files Response: fileList

In this example, the activity retrieves a list of files from the "Documents" folder in Google Drive, and the file information is stored in the variable "fileList" for further handling in the workflow.